package com.vanysoft.business.system.email.vo;

import java.io.Serializable;

/**
 * @author qi_ma
 * @since 1.0, 2018-07-13 17:09
 */


public class EmailVo implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 发送对象
     */
    private String[] to;
    /**
     * 主题
     */
    private String subject;
    /**
     * 内容
     */
    private String content;
    /**
     * 是否为html格式
     */
    private boolean html = false;

    public EmailVo(String[] to, String subject, String content) {
        this.to = to;
        this.subject = subject;
        this.content = content;
    }

    public EmailVo(String to, String subject, String content) {
        this.to = new String[]{to};
        this.subject = subject;
        this.content = content;
    }

    public EmailVo(String[] to, String subject, String content, boolean html) {
        this.to = to;
        this.subject = subject;
        this.content = content;
        this.html = html;
    }

    public EmailVo(String to, String subject, String content, boolean html) {
        this.to = new String[]{to};
        this.subject = subject;
        this.content = content;
        this.html = html;
    }

    public String[] getTo() {
        return to;
    }

    public void setTo(String[] to) {
        this.to = to;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isHtml() {
        return html;
    }

    public void setHtml(boolean html) {
        this.html = html;
    }
}
